<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'Showonecmpdynamic.jsp' starting page</title>
        <link href="/bestcleaner/js/tablecloth/tablecloth.css" rel="stylesheet" type="text/css" media="screen" />
	<script type="text/javascript" src="/bestcleaner/js/tablecloth/tablecloth.js"></script>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style>

body{
	margin:0;
	padding:0;
	background:#f1f1f1;
	font:70% Arial, Helvetica, sans-serif; 
	color:#555;
	line-height:150%;
	text-align:left;
}
a{
	text-decoration:none;
	color:#057fac;
}
a:hover{
	text-decoration:none;
	color:#999;
}
h1{
	font-size:140%;
	margin:0 20px;
	line-height:80px;	
}
h2{
	font-size:120%;
}
#container{
	margin:0 auto;
	width:1000px;
	background:#fff;
	padding-bottom:20px;
}
#content{margin:0 20px;}
p.sig{	
	margin:0 auto;
	width:680px;
	padding:1em 0;
}
form{
	margin:1em 0;
	padding:.2em 20px;
	background:#eee;
}
</style>
  </head>
  
  <body onload="document.getElementById('cmpdynamicimg1').src=document.getElementById('cmpdynamicimg').value">
    <s:form action="modifycmpdynamic" method="post">
      <div id="content">
  <table width="80%" align="center" border="1px">
  <tr>
  <td width="50px"align="left"><b>编号</b></td>
  <td><s:textfield name="cmpdynamic.id" readonly="true" /></td></tr>
  <tr>
  <td width="50px"align="left"><B>标题</B></td>
     <td><s:textfield name="cmpdynamic.title" /></td>
  </tr>
   <tr>
  <td width="50px" align="left"><B>图片地址</B></td>
  <td><s:textfield name="cmpdynamic.img" id="cmpdynamicimg"/></td></tr>
  
  <tr>
  <td width="50px" align="left"><B>图片</B></td>
  <td><img src="" id="cmpdynamicimg1" onload="javascript:if (this.width>600) this.width=600;if(this.height>400) this.height=400"/></td>
  </tr>
  <tr>
  <td width="50px" align="left"><B>内容</B></td>
  <td><s:textarea name="cmpdynamic.content"  style="width:800px;height:600px;" /></td>
  </tr>
  <tr>
				<td></td>
				<td colspan="2"><input type="submit" value="确定" /></td>
			</tr>
			<tr>
				<td colspan="2" align="center"><a href="showallcmpdynamic">返回</a></td>
			</tr>
  </table>
  </div>
  </s:form>
  </body>
</html>
